package com.myproject.http;

import java.io.FileInputStream;
import java.io.InputStream;
import java.net.URLDecoder;
import java.nio.ByteBuffer;

public class Test {

    public static void main(String[] args) throws Exception{

        //        URLDecoder urlDecoder = new URLDecoder();
        //String s = URLDecoder.decode("https://www.imooc.com/search/?words=%E7%BD%91","UTF-8");
        //String s = URLDecoder.decode("https://www.imooc.com/search/?words=%E7%BD%91","GBK");
        //
        // System.out.println(s);

        /*String s = "网";
        byte[] bytes = s.getBytes();
        for (byte b:bytes){
            System.out.println(b);
            int i = b;
            System.out.println(i);
        }*/

        int i = 200;
        byte b = (byte) i;
        System.out.println(Integer.toBinaryString(2));
        System.out.println(Integer.toBinaryString(-2));
    }
}
